package com.sunfeng.gulimall.product.fallback;

import com.sunfeng.common.exception.BizCodeEnum;
import com.sunfeng.common.utils.R;
import com.sunfeng.gulimall.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @Author : 清风冷影
 * @Description:
 * @Date : 2021/11/17  14:24
 */
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {
    @Override
    public R getSkuSeckillInfo(Long skuId) {
        return R.error(BizCodeEnum.TO_MANY_REQUEST.getCode(),BizCodeEnum.TO_MANY_REQUEST.getMessage());
    }
}
